{extend name="layout" /}
{block name="content"}
<div class="mui-content">

	<div class="tm-integral-section">
		<div class="">
			当前积分
		</div>
		<div class="this-title">
			{$uinfo.jifen}
		</div>
		<div class="uk-text-xmini">
			<span class="mui-icon mui-icon-info uk-text-middle uk-text-smedium"></span>
			<span class="uk-text-middle">做任务，赚积分，换礼品!</span>
		</div>
	</div>

	<div class="uk-margin-small-bottom">

		<div class="tm-table-view-header">
			积分获取
		</div>
		<div class="mui-table-view uk-text-xsmall mui-in-zero">
			<div class="mui-table-view-cell no-active-bg">
				<img src="{$images_path}tm-integral-icon01.png" width="23" height="23" />
				<span class="uk-text-middle">每日签到送积分</span>
				<span class="uk-text-middle uk-text-orange uk-margin-small-left">
					<img src="{$images_path}tm-icon-integral.png" width="13" height="13"/>
					<em class="uk-text-middle">+{:config('QIANDAO')}</em>
				</span>
				<a class="mui-btn mui-btn-orange mui-btn-outlined mui-btn-xsmall" href="{:url('signin')}">去完成</a>
			</div>
			<div class="mui-table-view-cell no-active-bg">
				<img src="{$images_path}tm-integral-icon02.png" width="23" height="23" />
				<span class="uk-text-middle">晒单送积分</span>
				<span class="uk-text-middle uk-text-orange uk-margin-small-left">
					<img src="{$images_path}tm-icon-integral.png" width="13" height="13"/>
					<em class="uk-text-middle">+{:config('SHAIDAN')}</em>
				</span>
				<a class="mui-btn mui-btn-orange mui-btn-outlined mui-btn-xsmall" href="{:url('share', ['nid'=>1])}">去完成</a>
			</div>
			<div class="mui-table-view-cell no-active-bg">
				<img src="{$images_path}tm-integral-icon03.png" width="23" height="23" />
				<span class="uk-text-middle">分享订单送积分</span>
				<span class="uk-text-middle uk-text-orange uk-margin-small-left">
					<img src="{$images_path}tm-icon-integral.png" width="13" height="13"/>
					<em class="uk-text-middle">+{:config('FENXIANG')}</em>
				</span>
				<a class="mui-btn mui-btn-orange mui-btn-outlined mui-btn-xsmall" href="{:url('share')}">去完成</a>
			</div>

		</div>

	</div>
	<div class="uk-margin-small-bottom">
		<div class="tm-table-view-header">
			会员信用体系
		</div>
		<div class="mui-table-view uk-text-xmini mui-in-zero line-height-xsmall">
			<div class="mui-table-view-cell no-active-bg">
			{:config('JIFEN_SYS')}
			</div>
		</div>
	</div>
	<div class="uk-margin-small-bottom">
		<div class="tm-table-view-header">
			积分用处
		</div>
		<div class="mui-table-view uk-text-xmini mui-in-zero line-height-xsmall">
			<div class="mui-table-view-cell no-active-bg">
			{:config('JIFEN_USE')}
			</div>
		</div>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
	$(function(){
		c3_navtive_user.right_button_item1 = {
            title:"积分记录",
            callback:function(){
                var content = new Array();
                content['title'] = "积分记录";
                content['url'] = "{$app_url}/index/member/jifen_record";
				content['target'] = "blank";
                c3_navtive_user.doActionAnsy('gotopage',content,function(){});
            }
        };
        var button_item = [
            {
                title: "积分记录",
                returnTag:'1'
            }
        ];
        {if !isset($isphone)}
            c3_navtive_user.doActionFunc("configMenu",button_item,function(datas){
                returntag = eval('(' + datas + ')');
                if(returntag.returnTag == 1){
                    var content = new Array();
                    content['title'] = "积分记录";
                    content['url'] = "{$app_url}/index/member/jifen_record";
					content['target'] = "blank";
                    c3_navtive_user.doActionAnsy('gotopage',content,function(){});
                }
                else if(returntag.returnTag == 2){
                    c3_navtive_user.doActionAnsy('openSearch',null,function(){});
                }
            });
        {/if}
	})
</script>
{/block}